<commit_before>Trix.extend

  allAttributeNames: null
  listAttributeNames: null

  getAllAttributeNames: ->
    @allAttributeNames ?= (
      result = []
      result.push(key) for key of Trix.config.textAttributes
      result.push(key) for key of Trix.config.blockAttributes
      result
    )

  getListAttributeNames: ->
    @listAttributeNames ?= (
      result = []
      for key, object of Trix.config.blockAttributes
        if object.hasOwnProperty("listAttribute")
          result.push(object.listAttribute)
      result
    )
<commit_msg>Prevent private attribute from polluting global namespace<commit_after>allAttributeNames = null
listAttributeNames = null

Trix.extend

  getAllAttributeNames: ->
    allAttributeNames ?= (
      result = []
      result.push(key) for key of Trix.config.textAttributes
      result.push(key) for key of Trix.config.blockAttributes
      result
    )

  getListAttributeNames: ->
    listAttributeNames ?= (
      result = []
      for key, object of Trix.config.blockAttributes
        if object.hasOwnProperty("listAttribute")
          result.push(object.listAttribute)
      result
    )

{'fraction_non_alphanumeric': 0.08581436077057793, 'fraction_numerical': 0.0, 'mean_word_length': 2.901023890784983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1063394', 'n_tokens_mistral': 322, 'n_tokens_neox': 317, 'n_words': 68}