<commit_before># encoding: utf-8

require 'executable/errors'
require 'executable/parser'
require 'executable/help'
require 'executable/config'
require 'executable/utils'
require 'executable/domain'

# Executable is a mixin for creating robust, inheritable and
# reusable command line interfaces.
#
module Executable

  #
  #
  #
  def self.included(base)
    base.extend Domain
  end

  #
  # Default initializer, simply takes a hash of settings
  # to set attributes via writer methods. Not existnt
  # attributes are simply ignored.
  #
  def initialize(settings={})
    initialize_defaults
    settings.each do |k,v|
      __send__("#{k}=", v) if respond_to?("#{k}=")
    end
  end

  #
  #
  #
  def initialize_defaults
  end

public

  #
  #
  #
  def call(*args)<commit_msg>On sencond thought, Remove initialize_defaults.<commit_after># encoding: utf-8

require 'executable/errors'
require 'executable/parser'
require 'executable/help'
require 'executable/config'
require 'executable/utils'
require 'executable/domain'

# Executable is a mixin for creating robust, inheritable and
# reusable command line interfaces.
#
module Executable

  #
  #
  #
  def self.included(base)
    base.extend Domain
  end

  #
  # Default initializer, simply takes a hash of settings
  # to set attributes via writer methods. Not existnt
  # attributes are simply ignored.
  #
  def initialize(settings={})
    settings.each do |k,v|
      __send__("#{k}=", v) if respond_to?("#{k}=")
    end
  end

public

  #
  #
  #
  def call(*args)
{'fraction_non_alphanumeric': 0.10412573673870335, 'fraction_numerical': 0.0013097576948264572, 'mean_word_length': 3.6303030303030304, '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': '4072838', 'n_tokens_mistral': 501, 'n_tokens_neox': 486, 'n_words': 145}