<commit_before>require 'rails/engine'
require "active_support/dependencies"
require 'datajam_chat'
require 'bitly'

module DatajamChat

  class Engine < Rails::Engine

    initializer "datajam_chat.register_plugin" do
      Datajam.setup do |app|
        app.plugins << Gem::Specification.load(File.expand_path("../../../datajam_chat.gemspec", __FILE__))
      end
    end

    initializer "bitly.use_api_version_3" do
      Bitly.use_api_version_3
    end

    if Rails.env =~ /^(development|test)$/
      initializer "datajam_chat.static_assets" do |app|
        app.middleware.use ::ActionDispatch::Static, "#{root}/public"
      end

      initializer "evergreen.config" do
        Evergreen.configure do |config|
          config.root = DatajamChat::Engine.root
        end
      end

    end
  end
end<commit_msg>reference evergreen globally in initializer<commit_after>require 'rails/engine'
require "active_support/dependencies"
require 'datajam_chat'
require 'bitly'

module DatajamChat

  class Engine < Rails::Engine

    initializer "datajam_chat.register_plugin" do
      Datajam.setup do |app|
        app.plugins << Gem::Specification.load(File.expand_path("../../../datajam_chat.gemspec", __FILE__))
      end
    end

    initializer "bitly.use_api_version_3" do
      Bitly.use_api_version_3
    end

    if Rails.env =~ /^(development|test)$/
      initializer "datajam_chat.static_assets" do |app|
        app.middleware.use ::ActionDispatch::Static, "#{root}/public"
      end

      initializer "evergreen.config" do
        ::Evergreen.configure do |config|
          config.root = DatajamChat::Engine.root
        end
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.10778443113772455, 'fraction_numerical': 0.0023952095808383233, 'mean_word_length': 3.0265060240963857, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6929056', 'n_tokens_mistral': 550, 'n_tokens_neox': 509, 'n_words': 109}