<commit_before># Description:
#   sandbox - run javascript in a sandbox!
#
# Dependencies:
#   "sandbox": "0.8.3"
#
# Configuration:
#   None
#
# Commands:
#   hubot (run|sandbox|js) <javascript> - Execute the javascript code
#
# Author:
#   ajacksified
#

Sandbox = require('sandbox')

module.exports = (robot) ->
  robot.hear /(run|sandbox|js) (.*)/i, (msg) ->
    sandbox = new Sandbox
    sandbox.run(msg.match[2], (output) ->
      msg.send output.result
    )<commit_msg>Should force 'run' to be at beginning<commit_after># Description:
#   sandbox - run javascript in a sandbox!
#
# Dependencies:
#   "sandbox": "0.8.3"
#
# Configuration:
#   None
#
# Commands:
#   hubot (run|sandbox|js) <javascript> - Execute the javascript code
#
# Author:
#   ajacksified
#

Sandbox = require('sandbox')

module.exports = (robot) ->
  robot.hear /^(run|sandbox|js) (.*)/i, (msg) ->
    sandbox = new Sandbox
    sandbox.run(msg.match[2], (output) ->
      msg.send output.result
    )
{'fraction_non_alphanumeric': 0.16649642492339123, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 3.3946188340807173, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 11, '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': '2863350', 'n_tokens_mistral': 390, 'n_tokens_neox': 367, 'n_words': 82}