<commit_before>require "action_view"

require "ress/version"
require "ress/device_category"
require "ress/category_collection"
require "ress/controller_additions"
require "ress/view_helpers"

require "ress/engine"

module Ress
  extend self

  def categories
    @categories ||= CategoryCollection.new
  end

  def configure
    yield(categories)
  end<commit_msg>only require rails engine if rails is defined<commit_after>require "action_view"

require "ress/version"
require "ress/device_category"
require "ress/category_collection"
require "ress/controller_additions"
require "ress/view_helpers"

if defined? Rails
  require "ress/engine"
end

module Ress
  extend self

  def categories
    @categories ||= CategoryCollection.new
  end

  def configure
    yield(categories)
  end
{'fraction_non_alphanumeric': 0.0778061224489796, 'fraction_numerical': 0.0, 'mean_word_length': 5.1328125, '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': '3159404', 'n_tokens_mistral': 235, 'n_tokens_neox': 229, 'n_words': 64}