<commit_before>local Entry = {}

local argv = require("options")
  :usage("Usage: ")
  :describe("e", "entry module")
  :argv("he:")

function Entry.run()
  local mod = argv.args.e or 'monitoring-agent'
  mod = './' .. mod
  require(mod).run()
end

return Entry<commit_msg>cleanup init.lua on invalid entry points<commit_after>local logging = require('logging')

local Entry = {}

local argv = require("options")
  :usage("Usage: ")
  :describe("e", "entry module")
  :argv("he:")

function Entry.run()
  local mod = argv.args.e or 'monitoring-agent'
  mod = './' .. mod

  logging.log(logging.INFO, 'Running Module ' .. mod)

  local err, msg = pcall(function()
    require(mod).run()
  end)

  if err == false then
    logging.log(logging.ERR, msg)
  end
end

return Entry
{'fraction_non_alphanumeric': 0.17054263565891473, 'fraction_numerical': 0.0, 'mean_word_length': 3.696969696969697, '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': '5692261', 'n_tokens_mistral': 265, 'n_tokens_neox': 257, 'n_words': 69}