<commit_before>module Virtus

  # A Configuration instance
  class Configuration

    # Access the coerce setting for this instance
    attr_accessor :coerce

    # Build new configuration instance using the passed block
    #
    # @example
    #   Configuration.build do |config|
    #     config.coerce = false
    #   end
    #
    # @return [Configuration]
    #
    # @api public
    def self.build(&block)
      new.call(&block)
    end

    # Initialized a configuration instance
    #
    # @return [undefined]
    #
    # @api private
    def initialize
      @coerce  = true
      @coercer = Coercible::Coercer.new
    end

    # Provide access to the attributes and methods via the passed block
    #
    # @example
    #   configuration.call do |config|
    #     config.coerce = false
    #   end
    #
    # @return [self]
    #
    # @api private
    def call(&block)
      yield self if block_given?
      self
    end

    # Access the coercer for this instance and optional configure a
    # new coercer with the passed block
    #
    # @example
    #   configuration.coercer do |config|
    #     config.string.boolean_map = { true => '1', false => '0' }
    #   end
    #
    # @ return [Coercer]
    #
    # @api private
    def coercer(&block)
      @coercer = Coercible::Coercer.new(&block) if block_given?
      @coercer
    end

  end # class Configuration<commit_msg>Explicitly use block in Configuration#call<commit_after>module Virtus

  # A Configuration instance
  class Configuration

    # Access the coerce setting for this instance
    attr_accessor :coerce

    # Build new configuration instance using the passed block
    #
    # @example
    #   Configuration.build do |config|
    #     config.coerce = false
    #   end
    #
    # @return [Configuration]
    #
    # @api public
    def self.build(&block)
      new.call(&block)
    end

    # Initialized a configuration instance
    #
    # @return [undefined]
    #
    # @api private
    def initialize
      @coerce  = true
      @coercer = Coercible::Coercer.new
    end

    # Provide access to the attributes and methods via the passed block
    #
    # @example
    #   configuration.call do |config|
    #     config.coerce = false
    #   end
    #
    # @return [self]
    #
    # @api private
    def call(&block)
      block.call(self) if block_given?
      self
    end

    # Access the coercer for this instance and optional configure a
    # new coercer with the passed block
    #
    # @example
    #   configuration.coercer do |config|
    #     config.string.boolean_map = { true => '1', false => '0' }
    #   end
    #
    # @ return [Coercer]
    #
    # @api private
    def coercer(&block)
      @coercer = Coercible::Coercer.new(&block) if block_given?
      @coercer
    end

  end # class Configuration
{'fraction_non_alphanumeric': 0.08707964601769912, 'fraction_numerical': 0.001415929203539823, 'mean_word_length': 2.129568106312292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2945247', 'n_tokens_mistral': 885, 'n_tokens_neox': 856, 'n_words': 252}