<commit_before>local https = require "ssl.https"

function DoThings()
  if arg[1]==nil then
    print(string.format( "Usage: %s <URL>", arg[1] ))
  else
    local r, c, h, s = https.request{
      url = tostring(arg[1]),
      sink = ltn12.sink.table({}),
      protocol = "tlsv1",
      mode = "client",
      cafile = "/etc/ssl/certs/",
      verify = "peer",
      options = "all"
    }
    print(arg[1],c)
  end
end
DoThings()<commit_msg>newest version<commit_after>local https = require "ssl.https"

function DoThings()
    if arg[1]==nil then
        print(string.format( "Usage: %s <URL>", arg[1] ))
    else
        local r, c, h, s = https.request{
            url = tostring(arg[1]),
            options = "all",
            --sink = ltn12.sink.table({}),
            protocol = "tlsv1",
            mode = "client",
            cafile = "/etc/ssl/certs/ca-certificates.crt",
            verify = "peer"
            --key = "/root/client.key",
            --certificate="/root/client.crt"
        }
        print(arg[1],c)
    end
end
DoThings()
{'fraction_non_alphanumeric': 0.16777251184834124, 'fraction_numerical': 0.013270142180094787, 'mean_word_length': 1.9830508474576272, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5908348', 'n_tokens_mistral': 369, 'n_tokens_neox': 365, 'n_words': 81}