<commit_before>--
--  echo server with curve
--

local zmq = require 'luazmq'

zmq.init()

local public_key = [[E>-TgoMAf+R*WZ]8[NQ-tV>c1vN{WryLVrFkS8>y]]
local secret_key = [[<KEY>

local address = 'tcp://*:10086'

local s = zmq.socket(zmq.REP)
    s:set_curve_public_key(zmq.z85_decode(public_key))
    s:set_curve_secret_key(zmq.z85_decode(secret_key))
    s:set_curve_server(true)
    s:set_accept_filter('127.0.0.1')
    s:bind(address)
    print('server start at ' .. address)
    local num = 0
    while true do
        local str = s:recv()
        num = num + 1
        print(num, str)
        s:send(str)
    end

zmq.shutdown()
zmq.terminate()
<commit_msg>tab fix<commit_after>--
--  echo server with curve
--

local zmq = require 'luazmq'

zmq.init()

local public_key = [[E>-TgoMAf+R*WZ]8[NQ-tV>c1vN{WryLVrFkS8>y]]
local secret_key = [[<KEY>

local address = 'tcp://*:10086'

local s = zmq.socket(zmq.REP)
s:set_curve_public_key(zmq.z85_decode(public_key))
s:set_curve_secret_key(zmq.z85_decode(secret_key))
s:set_curve_server(true)
s:set_accept_filter('127.0.0.1')
s:bind(address)
print('server start at ' .. address)
local num = 0
while true do
    local str = s:recv()
    num = num + 1
    print(num, str)
    s:send(str)
end

zmq.shutdown()
zmq.terminate()

{'fraction_non_alphanumeric': 0.1554160125588697, 'fraction_numerical': 0.03139717425431711, 'mean_word_length': 3.7574626865671643, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '882104', 'n_tokens_mistral': 577, 'n_tokens_neox': 548, 'n_words': 99}