<commit_before>-- Note: This file is shared between LuaSkinTests and Hammerspoon Tests
local bundlePath = ...

if (type(bundlePath) == "string") then
  package.path = bundlePath.."/?.lua"..";"..package.path
else
  print("-- Warning: lsunit.lua running with no bundlePath. This is not an error if your package.path contains an init.lua")
end

-- Utility functions
function failure(msg)
  error(string.format("Assertion failure: %s", msg))
end

function success()
  return "Success"
end

function errorMsgEquality(expected, actual)
  return string.format("expected: %s, actual: %s", expected, actual)
end
<commit_msg>Fix a small debugging message typo<commit_after>-- Note: This file is shared between LuaSkinTests and Hammerspoon Tests
local bundlePath = ...

if (type(bundlePath) == "string") then
  package.path = bundlePath.."/?.lua"..";"..package.path
else
  print("-- Warning: lsunit.lua running with no bundlePath. This is not an error if your package.path contains a testinit.lua")
end

-- Utility functions
function failure(msg)
  error(string.format("Assertion failure: %s", msg))
end

function success()
  return "Success"
end

function errorMsgEquality(expected, actual)
  return string.format("expected: %s, actual: %s", expected, actual)
end

{'fraction_non_alphanumeric': 0.12599681020733652, 'fraction_numerical': 0.0, 'mean_word_length': 4.653153153153153, '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': '221164', 'n_tokens_mistral': 381, 'n_tokens_neox': 369, 'n_words': 133}