<commit_before>send_headers()

print("\
\
")
 
headers["Content-Type"] = "text/html; charset=utf-8"

local oldtostring = tostring
function tostring(o, fmt)
  local mt = getmetatable(o)
  if type(mt) == "table" and mt.__tostring then
    return mt.__tostring(o, fmt)
  else
    return oldtostring(o)
  end
end

page_title = "Hello World"
items = {
  ["Apples"] = "Fruit",
  ["Evil kitten"] = "Animal"
}


print("
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
  <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
    <title>")
print( page_title )
print("</title>
  </head>
  ")
--[[ This is a comment ]]
print("
  <body>
    <ul>
    ")
for k, v in pairs(header) do 
print("
      <li><b>")
print( k )
print("</b> = ")
print(v)
print("</li>
    ")
end 
print("
    </ul>
  </body>  
  ")
--[[ 
    Comments
    can be
    multiline
  ]]
print("
</html>
")<commit_msg>Updated with output from current test.elua<commit_after>io.write("\
\
")

headers = {
  ["Content-Type"] = "text/html",
  ["Status"] = "200"
}

function send_headers() end

headers["Content-Type"] = "text/html; charset=utf-8"

local oldtostring = tostring
function tostring(o, fmt)
  local mt = getmetatable(o)
  if type(mt) == "table" and mt.__tostring then
    return mt.__tostring(o, fmt)
  else
    return oldtostring(o)
  end
end

page_title = "Hello World"
items = {
  ["Apples"] = "Fruit",
  ["Evil kitten"] = "Animal"
}


io.write("\
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\
  <head>\
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\
    <title>")
io.write( page_title )
io.write("</title>\
  </head>\
  ")
io.write("\
  <body>\
    <ul>\
    ")
for k, v in pairs(headers) do 
io.write("\
      <li><b>")
io.write( k )
io.write("</b> = ")
io.write(v)
io.write("</li>\
    ")
end 
io.write("\
    </ul>\
  </body>  \
  ")
io.write("\
</html>\
")
{'fraction_non_alphanumeric': 0.2248847926267281, 'fraction_numerical': 0.013364055299539171, 'mean_word_length': 2.954462659380692, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '5051780', 'n_tokens_mistral': 914, 'n_tokens_neox': 875, 'n_words': 184}