<commit_before>require 'action_view'
require 'table_cloth/version'
require 'table_cloth/configurable_elements'
require 'table_cloth/base'

module TableCloth
  autoload :Configuration, 'table_cloth/configuration'
  autoload :Builder, 'table_cloth/builder'
  autoload :Column, 'table_cloth/column'
  autoload :Action, 'table_cloth/action'
  autoload :Presenter, 'table_cloth/presenter'
  autoload :ActionViewExtension, 'table_cloth/action_view_extension'

  module Presenters
    autoload :Default, 'table_cloth/presenters/default'
  end

  module Columns
    autoload :Action, 'table_cloth/columns/action'
  end

  extend self
  def self.config_for(type)
    Configuration.config_for(type)
  end
end

TableCloth::Base.presenter ::TableCloth::Presenters::Default

ActionView::Base.send(:include, TableCloth::ActionViewExtension)<commit_msg>Don't extend self on module, use module_function.<commit_after>require 'action_view'
require 'table_cloth/version'
require 'table_cloth/configurable_elements'
require 'table_cloth/base'

module TableCloth
  autoload :Configuration, 'table_cloth/configuration'
  autoload :Builder, 'table_cloth/builder'
  autoload :Column, 'table_cloth/column'
  autoload :Action, 'table_cloth/action'
  autoload :Presenter, 'table_cloth/presenter'
  autoload :ActionViewExtension, 'table_cloth/action_view_extension'

  module Presenters
    autoload :Default, 'table_cloth/presenters/default'
  end

  module Columns
    autoload :Action, 'table_cloth/columns/action'
  end

  def config_for(type)
    Configuration.config_for(type)
  end
  module_function :config_for
end

TableCloth::Base.presenter ::TableCloth::Presenters::Default

ActionView::Base.send(:include, TableCloth::ActionViewExtension)
{'fraction_non_alphanumeric': 0.09460243760882182, 'fraction_numerical': 0.0, 'mean_word_length': 6.528384279475983, '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': '7013830', 'n_tokens_mistral': 577, 'n_tokens_neox': 546, 'n_words': 107}