<commit_before>var net = require('net');

module.exports = function(evalFunc,port) {
	if(!port) {
		throw new Error("Please specify the `port` as the second parameter to Debug Live.");
	}

	var server = net.createServer(function (socket) {
		socket.write("Welcome to the Live Debugger:\n>");

		socket.on("data", function(data) {
			var result = "";

			try {
				result = evalFunc(data.toString());
			}
			catch(e) {
				result = e;
			}
			finally {
				socket.write(result  + "\n>");
			}
		});
	});

	server.listen(port, '127.0.0.1');
	console.log("Debug Live is running on port " + port + ". `telnet localhost " + port + "` to connect.");
}<commit_msg>Update debugLive.js<commit_after>var net = require('net');

module.exports = function(evalFunc,port) {
	if(!port) {
		throw new Error("Please specify the `port` as the second parameter to Debug Live.");
	}

	var server = net.createServer(function (socket) {
		socket.write("Welcome to Debug Live:\n>");

		socket.on("data", function(data) {
			var result = "";

			try {
				result = evalFunc(data.toString());
			}
			catch(e) {
				result = e;
			}
			finally {
				socket.write(result  + "\n>");
			}
		});
	});

	server.listen(port, '127.0.0.1');
	console.log("Debug Live is running on port " + port + ". `telnet localhost " + port + "` to connect.");
}
{'fraction_non_alphanumeric': 0.17718631178707225, 'fraction_numerical': 0.009125475285171103, 'mean_word_length': 3.272727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '868329', 'n_tokens_mistral': 513, 'n_tokens_neox': 437, 'n_words': 110}