<commit_before>require 'tilt'

module Tilt
  class MustacheJsTemplate < Template
    self.default_mime_type = 'application/javascript'

    def initialize_engine
      require_template_library 'mustache/js'
    end

    def prepare
    end

    def evaluate(scope, locals, &block)
      Mustache.to_javascript(data)
    end
  end
end
<commit_msg>Add engine initialized check<commit_after>require 'tilt'

module Tilt
  class MustacheJsTemplate < Template
    self.default_mime_type = 'application/javascript'
    
    def self.engine_initialized?
      defined? ::Mustache.to_javascript
    end

    def initialize_engine
      require_template_library 'mustache/js'
    end

    def prepare
    end

    def evaluate(scope, locals, &block)
      Mustache.to_javascript(data)
    end
  end
end

{'fraction_non_alphanumeric': 0.06305170239596469, 'fraction_numerical': 0.0, 'mean_word_length': 3.223404255319149, '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': '1188719', 'n_tokens_mistral': 243, 'n_tokens_neox': 235, 'n_words': 58}