<commit_before># encoding: utf-8
require "bigdecimal"

module Origin
  module Extensions
    module BigDecimal
      module ClassMethods

        def evolve(object)
          return object unless object
          object.to_s
        end
      end
    end
  end
end

::BigDecimal.__send__(:extend, Origin::Extensions::BigDecimal::ClassMethods)<commit_msg>Update big decimal extension doc<commit_after># encoding: utf-8
require "bigdecimal"

module Origin
  module Extensions

    # The big decimal module adds custom behaviour for Origin onto the
    # BigDecimal class.
    module BigDecimal
      module ClassMethods

        # Evolves the big decimal into a MongoDB friendly value - in this case
        # a string.
        #
        # @example Evolve the big decimal
        #   BigDecimal.evolve(decimal)
        #
        # @param [ BigDecimal ] object The object to convert.
        #
        # @return [ String ] The big decimal as a string.
        #
        # @since 1.0.0
        def evolve(object)
          return object unless object
          object.to_s
        end
      end
    end
  end
end

::BigDecimal.__send__(:extend, Origin::Extensions::BigDecimal::ClassMethods)
{'fraction_non_alphanumeric': 0.06661045531197302, 'fraction_numerical': 0.0042158516020236085, 'mean_word_length': 2.260989010989011, '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': '5508684', 'n_tokens_mistral': 324, 'n_tokens_neox': 313, 'n_words': 107}