<commit_before># This file is here to integrate with Rails 3,
# since there's no better way to do so as of 14 March 2010.
# Yehuda promises there will be soon,
# and once there is we should switch to that.

# Rails 3.0.0.beta.2+
if defined?(ActiveSupport) && Haml::Util.has?(:public_method, ActiveSupport, :on_load)
  require 'haml/template/options'
  require 'sass/plugin/configuration'
  ActiveSupport.on_load(:action_view) do
    if Rails.application
      Haml.init_rails(binding)
    else
      # I can't believe we have to do this, but we do.
      # Rails 3's lovely lazy-loading means that it's possible to load ActionView
      # before the application has even begin loading.
      # This means that Rails.root doesn't exist yet.
      # So if the application isn't loaded, we use this arcane initializer stuff
      # to load Haml/Sass *after* the application loads.
      #
      # Of course, it's also possible that the application is loaded before ActionView,
      # so we can't *just* rely on this method of loading.
      #<commit_msg>Get rid of an outdated comment.<commit_after># Rails 3.0.0.beta.2+
if defined?(ActiveSupport) && Haml::Util.has?(:public_method, ActiveSupport, :on_load)
  require 'haml/template/options'
  require 'sass/plugin/configuration'
  ActiveSupport.on_load(:action_view) do
    if Rails.application
      Haml.init_rails(binding)
    else
      # I can't believe we have to do this, but we do.
      # Rails 3's lovely lazy-loading means that it's possible to load ActionView
      # before the application has even begin loading.
      # This means that Rails.root doesn't exist yet.
      # So if the application isn't loaded, we use this arcane initializer stuff
      # to load Haml/Sass *after* the application loads.
      #
      # Of course, it's also possible that the application is loaded before ActionView,
      # so we can't *just* rely on this method of loading.
      #
{'fraction_non_alphanumeric': 0.08082901554404145, 'fraction_numerical': 0.008808290155440414, 'mean_word_length': 3.188720173535792, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1261505', 'n_tokens_mistral': 583, 'n_tokens_neox': 546, 'n_words': 232}