<commit_before>module SmtRails
  class Engine < ::Rails::Engine
    config.before_configuration do |app|
      app.paths['app/views'] << SmtRails.template_base_path
    end

    initializer "sprockets.smt_rails", :group => :all do |app|
      config.assets.configure do |env|
        env.register_engine(".#{SmtRails.template_extension}", Tilt)
      end
      app.config.assets.paths << SmtRails.template_base_path
    end
  end
end<commit_msg>Fix #16: Engine sprockets initializer valid for Rails3 and Rails4<commit_after>module SmtRails
  class Engine < ::Rails::Engine
    config.before_configuration do |app|
      app.paths['app/views'] << SmtRails.template_base_path
    end

    initializer "sprockets.smt_rails", :group => :all do |app|
      app.config.assets.configure do |env|
        env.register_engine(".#{SmtRails.template_extension}", Tilt)
      end
      app.config.assets.paths << SmtRails.template_base_path
    end
  end
end
{'fraction_non_alphanumeric': 0.1109936575052854, 'fraction_numerical': 0.004228329809725159, 'mean_word_length': 3.57487922705314, 'pattern_counts': {'":': 0, '<': 13, '<?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': '776854', 'n_tokens_mistral': 316, 'n_tokens_neox': 310, 'n_words': 64}