<commit_before>var test = require('tape');
var mockery = require('mockery');
var inspectHandle = {};

process.title = 'testbot';

function SocketMock() {
	this.bytesRead = 0;
	this.bytesWritten = 0;

	inspectHandle.socket = this;
}

SocketMock.prototype.write = function(s) {
	this.bytesWritten += s.length;
};

SocketMock.prototype.read = function(buf) {
	this.bytesRead += buf.length;
};

SocketMock.prototype.unref = function() {};

mockery.registerAllowable('../lib/serveReferences.js');
mockery.registerMock('net', {
	createServer: listener => {
		var server = {};
		var prototype = Object.getPrototypeOf(server);

		prototype.close = function() {};

		prototype.listen = function(options, callback) {
			server.address = {
				port: options.port,
				address: options.host,
				family: 'IPv4'
			};

			setImmediate(callback);
		};

		prototype.once = function(name, handle) {}; // eslint-disable-line no-unused-vars

		prototype.unref = function() {};

		setImmediate(() => listener(new SocketMock()));

		inspectHandle.net = server;

		return server;
	}
});
mockery.registerMock('repl', {
	start: options => {
		var server = {
			context: {},
			prompt: options.prompt,
			useColors: options.useColors,
			ignoreUndefined: options.ignoreUndefined,
			input: options.input,
			output: options.output
		};
		var prototype = Object.getPrototypeOf(server);

		prototype.on = function(name, handle) {}; // eslint-disable-line no-unused-vars

		inspectHandle.repl = server;

		return server;
	}
});
mockery.enable();
<commit_msg>Remove unused properties in serveReferences test.<commit_after>var test = require('tape');
var mockery = require('mockery');
var inspectHandle = {};

process.title = 'testbot';

function SocketMock() {
	this.bytesRead = 0;
	this.bytesWritten = 0;
}

SocketMock.prototype.write = function(s) {
	this.bytesWritten += s.length;
};

SocketMock.prototype.read = function(buf) {
	this.bytesRead += buf.length;
};

SocketMock.prototype.unref = function() {};

mockery.registerAllowable('../lib/serveReferences.js');
mockery.registerMock('net', {
	createServer: listener => {
		var server = {};
		var prototype = Object.getPrototypeOf(server);

		prototype.close = function() {};

		prototype.listen = function(options, callback) {
			server.address = {
				port: options.port,
				address: options.host,
				family: 'IPv4'
			};

			setImmediate(callback);
		};

		prototype.once = function(name, handle) {}; // eslint-disable-line no-unused-vars

		prototype.unref = function() {};

		setImmediate(() => listener(new SocketMock()));

		return server;
	}
});
mockery.registerMock('repl', {
	start: options => {
		var server = {
			context: {},
			prompt: options.prompt,
			useColors: options.useColors,
			ignoreUndefined: options.ignoreUndefined,
			input: options.input,
			output: options.output
		};
		var prototype = Object.getPrototypeOf(server);

		prototype.on = function(name, handle) {}; // eslint-disable-line no-unused-vars

		inspectHandle.repl = server;

		return server;
	}
});
mockery.enable();

{'fraction_non_alphanumeric': 0.15382081686429513, 'fraction_numerical': 0.001976284584980237, 'mean_word_length': 4.1127946127946124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '636831', 'n_tokens_mistral': 1071, 'n_tokens_neox': 960, 'n_words': 187}