<commit_before>require "booletania/version"
require "booletania/attribute"

module Booletania
  extend ActiveSupport::Concern

  included do
    fail ArgumentError, "booletania only support ActiveRecord" unless ancestors.include? ActiveRecord::Base
    fail ArgumentError, "not found columns method" unless respond_to? :columns

    Attribute.define_methods!(self, columns.select{ |column| column.type == :boolean })
  end
end<commit_msg>add dot<commit_after>require "booletania/version"
require "booletania/attribute"

module Booletania
  extend ActiveSupport::Concern

  included do
    fail ArgumentError, "booletania only support ActiveRecord" unless ancestors.include? ActiveRecord::Base
    fail ArgumentError, "not found .columns method" unless respond_to? :columns

    Attribute.define_methods!(self, columns.select{ |column| column.type == :boolean })
  end
end
{'fraction_non_alphanumeric': 0.08610792192881746, 'fraction_numerical': 0.0, 'mean_word_length': 5.75968992248062, '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': '1729389', 'n_tokens_mistral': 247, 'n_tokens_neox': 240, 'n_words': 70}