<commit_before>require 'ya2yaml'

module Translate
  class Engine < Rails::Engine
  end if defined?(Rails) && Rails::VERSION::MAJOR == 3

  class << self
    # For configuring Google Translate API key
    attr_accessor :api_key
    # For configuring Bing Application id
    attr_accessor :app_id
  end
end
<commit_msg>let engine accept Rails versions > 3<commit_after>require 'ya2yaml'

module Translate
  class Engine < Rails::Engine
  end if defined?(Rails) && Rails::VERSION::MAJOR >= 3

  class << self
    # For configuring Google Translate API key
    attr_accessor :api_key
    # For configuring Bing Application id
    attr_accessor :app_id
  end
end

{'fraction_non_alphanumeric': 0.07738998482549317, 'fraction_numerical': 0.007587253414264037, 'mean_word_length': 3.962406015037594, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3344226', 'n_tokens_mistral': 213, 'n_tokens_neox': 202, 'n_words': 67}