<commit_before>module Translatable
end

require "translatable/base"

if defined?(Rails)
  require 'translatable/engine'

  ActiveSupport.on_load(:active_record) do
    require 'translatable/orm/active_record'
    ActiveRecord::Base.extend Translatable::ActiveRecord 
  end
else
  if defined?(ActiveRecord)
    require 'translatable/orm/active_record'
    ActiveRecord::Base.extend Translatable::ActiveRecord
  end
end<commit_msg>Initialize in case rails is included into specification<commit_after>module Translatable
end

require "translatable/base"

unless Gem::Specification.find_all_by_name("rails").empty?
  require 'translatable/engine'

  ActiveSupport.on_load(:active_record) do
    require 'translatable/orm/active_record'
    ActiveRecord::Base.extend Translatable::ActiveRecord 
  end
else
  if Gem::Specification.find_by_name("active_record")
    require 'active_record'
    require 'translatable/orm/active_record'
    
    ActiveRecord::Base.extend Translatable::ActiveRecord
  end
end
{'fraction_non_alphanumeric': 0.08608608608608609, 'fraction_numerical': 0.0, 'mean_word_length': 5.756756756756757, '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': '3994550', 'n_tokens_mistral': 308, 'n_tokens_neox': 302, 'n_words': 58}