<commit_before>
/**
 * Module dependencies.
 */

var methods = require('methods')
  , Test = require('./lib/test')
  , http = require('http');

/**
 * Test against the given `app`,
 * returning a new `Test`.
 *
 * @param {Function|Server} app
 * @return {Test}
 * @api public
 */

module.exports = function(app){
  if ('function' == typeof app) app = http.createServer(app);
  var obj = {};

  methods.forEach(function(method){
    var name = 'delete' == method
      ? 'del'
      : method;

    obj[name] = function(url){
      return new Test(app, method, url);
    };
  });

  return obj;
};

/**
 * Expose the agent function
 */

module.exports.agent = require('./lib/agent');<commit_msg>Expose `Test` to enable extensibility<commit_after>
/**
 * Module dependencies.
 */

var methods = require('methods')
  , Test = require('./lib/test')
  , http = require('http');

/**
 * Test against the given `app`,
 * returning a new `Test`.
 *
 * @param {Function|Server} app
 * @return {Test}
 * @api public
 */

module.exports = function(app){
  if ('function' == typeof app) app = http.createServer(app);
  var obj = {};

  methods.forEach(function(method){
    var name = 'delete' == method
      ? 'del'
      : method;

    obj[name] = function(url){
      return new Test(app, method, url);
    };
  });

  return obj;
};

/**
 * Expose `Test`
 */

module.exports.Test = Test;

/**
 * Expose the agent function
 */

module.exports.agent = require('./lib/agent');
{'fraction_non_alphanumeric': 0.18293515358361775, 'fraction_numerical': 0.0, 'mean_word_length': 3.0164383561643837, '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': '5717827', 'n_tokens_mistral': 477, 'n_tokens_neox': 471, 'n_words': 123}