<commit_before>require 'mustache'

module MozNav
  class MustacheBase < Mustache
    self.view_path      = MozNav::Root + 'moz_nav/views'
    self.template_path  = MozNav::Root + 'moz_nav/templates'
    self.view_namespace = MozNav
  end
end
<commit_msg>Raise errors when a mustache variable/method isn't found.<commit_after>require 'mustache'

module MozNav
  class MustacheBase < Mustache
    self.view_path      = MozNav::Root + 'moz_nav/views'
    self.template_path  = MozNav::Root + 'moz_nav/templates'
    self.view_namespace = MozNav

    def self.inherited(subclass)
      # for some reason, this setting isn't properly inherited, so we need to
      # set it directly on the subclass
      subclass.raise_on_context_miss = true
    end
  end
end

{'fraction_non_alphanumeric': 0.08068783068783068, 'fraction_numerical': 0.0, 'mean_word_length': 3.532934131736527, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7122146', 'n_tokens_mistral': 242, 'n_tokens_neox': 237, 'n_words': 64}