<commit_before>/**
 * Creates a new Request instance
 *
 * @param {Object} application A Vroom Application instance
 * @param {Object} req A Node.js HTTP request instance
 * @param {Object} res A Node.js HTTP response instance
 * @returns {Vroom.Request} A new Request instance
 */
exports.Request = function Request(application, req, res) {
  this.application = application;
  this.req = req;
  this.res = res;
  
  this.LOG = this.application.LOG;
  
  this.hasSentHeader = false;
  this.finished = false;
  
  this._status = 404;
  this._header = {};
};

exports.Request.prototype = {
  /**
   * Get the status that is going to be or has been sent to the client.
   * 
   * @returns {Number} The status code <commit_msg>Added some more comments to Vroom.Request.<commit_after>/**
 * Creates a new Request instance
 * 
 * @property {Vroom.Application} application
 * @property {Vroom.Config} config
 * @property {Vroom.Logger} LOG
 * @property {Boolean} hasSentHeaders True once sendHeader() is called
 * @property {Boolean} finished True if finish() has been called
 * 
 * @param {Object} application A Vroom Application instance
 * @param {Object} req A Node.js HTTP request instance
 * @param {Object} res A Node.js HTTP response instance
 * @returns {Vroom.Request} A new Request instance
 */
exports.Request = function Request(application, req, res) {
  this.application = application;
  this.req = req;
  this.res = res;
  
  this.config = this.application.config;
  this.LOG = this.application.LOG;
  
  this.hasSentHeader = false;
  this.finished = false;
  
  this._status = 404;
  this._header = {};
};

exports.Request.prototype = {
  /**
   * Get the status that is going to be or has been sent to the client.
   * 
   * @returns {Number} The status code 
{'fraction_non_alphanumeric': 0.11023176936122103, 'fraction_numerical': 0.0033917467495760316, 'mean_word_length': 3.526854219948849, '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': '5070037', 'n_tokens_mistral': 527, 'n_tokens_neox': 516, 'n_words': 185}