<commit_before>-- Cache control
if os.getenv [[HTTP_IF_MODIFIED_SINCE]] ~= nil then
  print [[Status: 304 Not Modified
]]
  os.exit()
end

print(string.format([[Content-type: text/html; charset=utf-8
X-Powered-By: Ophal/0.1-alpha4
Cache-Control: must-revalidate
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: %s
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Keep-Alive: timeout=15, max=90
]], os.date([[!%a, %d %b %Y %X GMT]], os.time(os.date([[*t]])) - 15*60)))

-- Jailed environment functions and modules

env = {
  io = io,
  os = os,
  tonumber = tonumber,
  type = type,
  module = module,
  pcall = pcall,
  loadstring = loadstring,
  setfenv = setfenv,<commit_msg>Use 'must-revalidate' as 'Cache-Control' header when page is cached already.<commit_after>-- Cache control
if os.getenv [[HTTP_IF_MODIFIED_SINCE]] ~= nil then
  print [[Status: 304 Not Modified
Cache-Control: must-revalidate
]]
  os.exit()
end

print(string.format([[Content-type: text/html; charset=utf-8
X-Powered-By: Ophal/0.1-alpha4
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: %s
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Keep-Alive: timeout=15, max=90
]], os.date([[!%a, %d %b %Y %X GMT]], os.time(os.date([[*t]])) - 15*60)))

-- Jailed environment functions and modules

env = {
  io = io,
  os = os,
  tonumber = tonumber,
  type = type,
  module = module,
  pcall = pcall,
  loadstring = loadstring,
  setfenv = setfenv,
{'fraction_non_alphanumeric': 0.162947937795808, 'fraction_numerical': 0.0392156862745098, 'mean_word_length': 4.229681978798586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2093886', 'n_tokens_mistral': 611, 'n_tokens_neox': 564, 'n_words': 148}