<commit_before>'use strict';

/**
 * Load Test a URL, website or websocket.
 * (C) 2013 <NAME>.
 */


// requires
var urlLib = require('url');
var http = require('http');
var Log = require('log');
var prototypes = require('./prototypes.js');
var timing = require('./timing.js');
var websocket = require('./websocket.js');

// globals
var log = new Log('info');

// constants
var DEFAULT_OPTIONS = {
	noAgent: true,
	concurrency: 1,
};
var SHOW_INTERVAL_MS = 5000;


/**
 * A client for an HTTP connection.
 * Operation is an object which has these attributes:
 *	- latency: a variable to measure latency.
 *	- running: if the operation is running or not.
 * Params is an object with the same options as exports.loadTest.
 */
function HttpClient(operation, params)
{
	// self-reference
	var self = this;

	// attributes
	var connection;
	var lastCall;
	var requestTimer;
	var options;
	var message;
	
	// init
	init();

	/**
	 * Init options and message to send.
	 */
	function init()
	{
		if (params.agentKeepAlive)<commit_msg>Removed unused attributes.<commit_after>'use strict';

/**
 * Load Test a URL, website or websocket.
 * (C) 2013 <NAME>.
 */


// requires
var urlLib = require('url');
var http = require('http');
var Log = require('log');
var prototypes = require('./prototypes.js');
var timing = require('./timing.js');
var websocket = require('./websocket.js');

// globals
var log = new Log('info');

// constants
var DEFAULT_OPTIONS = {
	noAgent: true,
	concurrency: 1,
};
var SHOW_INTERVAL_MS = 5000;


/**
 * A client for an HTTP connection.
 * Operation is an object which has these attributes:
 *	- latency: a variable to measure latency.
 *	- running: if the operation is running or not.
 * Params is an object with the same options as exports.loadTest.
 */
function HttpClient(operation, params)
{
	// self-reference
	var self = this;

	// attributes
	var requestTimer;
	var options;
	var message;
	
	// init
	init();

	/**
	 * Init options and message to send.
	 */
	function init()
	{
		if (params.agentKeepAlive)
{'fraction_non_alphanumeric': 0.13808353808353807, 'fraction_numerical': 0.008845208845208846, 'mean_word_length': 3.4649122807017543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2705979', 'n_tokens_mistral': 677, 'n_tokens_neox': 629, 'n_words': 225}