<commit_before>var net = require('net');
var util = require('util');
var assert = require('assert');
var Stream = require('stream');
var forge = require('node-forge').forge; // TODO: this is not working in Node

function TLSSocket(socket, options) {
	if (!(this instanceof TLSSocket)) return new TLSSocket(socket, options);

	var self = this;

	// Disallow wrapping TLSSocket in TLSSocket
	assert(!(socket instanceof TLSSocket));

	net.Socket.call(this);

	this._tlsOptions = options;
	this._secureEstablished = false;

	// Just a documented property to make secure sockets<commit_msg>Adds support for native Node.js<commit_after>var net = require('net');
var util = require('util');
var assert = require('assert');
var Stream = require('stream');
var forge = require('node-forge');

// Compatibility shim for the browser
if (typeof forge.forge == 'object') {
	forge = forge.forge;
}

function TLSSocket(socket, options) {
	if (!(this instanceof TLSSocket)) return new TLSSocket(socket, options);

	var self = this;

	// Disallow wrapping TLSSocket in TLSSocket
	assert(!(socket instanceof TLSSocket));

	net.Socket.call(this);

	this._tlsOptions = options;
	this._secureEstablished = false;

	// Just a documented property to make secure sockets
{'fraction_non_alphanumeric': 0.1276083467094703, 'fraction_numerical': 0.0, 'mean_word_length': 5.082926829268293, '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': '28458', 'n_tokens_mistral': 382, 'n_tokens_neox': 361, 'n_words': 121}