<commit_before>const nest = require('depnest')
const contextMenu = require('../../../../lib/context-menu')

exports.gives = nest('message.html.decorate')

exports.create = (api) => {
  return nest('message.html.decorate', function (element, { msg }) {
    element.addEventListener('contextmenu', contextMenu.bind(null, msg))
    return element
  })
}<commit_msg>add raw msg to Message elements for debugging<commit_after>const nest = require('depnest')
const contextMenu = require('../../../../lib/context-menu')

exports.gives = nest('message.html.decorate')

exports.create = (api) => {
  return nest('message.html.decorate', function (element, { msg }) {
    element.addEventListener('contextmenu', contextMenu.bind(null, msg))
    element.msg = msg
    return element
  })
}
{'fraction_non_alphanumeric': 0.17480719794344474, 'fraction_numerical': 0.0, 'mean_word_length': 4.263513513513513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1073872', 'n_tokens_mistral': 228, 'n_tokens_neox': 223, 'n_words': 49}