<commit_before>--- === hs.socket ===
---
--- Talk to custom protocols using asynchronous sockets

local socket = require("hs.socket.internal")


--- hs.socket.local(port, [fn]) -> hs.socket object
--- Constructor
--- Creates an asynchronous TCP socket on 'localhost' for reading (with callbacks) and writing 
---
--- Parameters:
---  * port - A port number [1024-65535]. Ports [1-1023] are privileged.
---  * fn - An optional callback function needed to read data. Can be set with `:setCallback`.
---
--- Returns:
---  * An `hs.socket` object
---
--- Notes:
socket.localhost = function(port, callback)
    return socket.new("localhost", port, callback)
end












return socket<commit_msg>clean this up for now<commit_after>--- === hs.socket ===
---
--- Talk to custom protocols using asynchronous sockets

local socket = require("hs.socket.internal")

return socket
{'fraction_non_alphanumeric': 0.1584385763490241, 'fraction_numerical': 0.016073478760045924, 'mean_word_length': 3.055813953488372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4090451', 'n_tokens_mistral': 261, 'n_tokens_neox': 236, 'n_words': 86}