<commit_before>module DataMapper
  class Session
    # Represent an object with its mapper
    class Mapping
      include Adamantium::Flat, Equalizer.new(:mapper, :object)

      # Return mapper
      #
      # @return [Mapper]
      #
      # @api private
      #
      attr_reader :mapper

      # Return object
      #
      # @return [Object]
      #
      # @api private
      #
      attr_reader :object

      # Initialize object
      #
      # @param [Mapper] mapper
      # @param [Object] object
      #
      # @return [undefined]
      #
      # @api private
      #
      def initialize(mapper, object)
        @mapper, @object = mapper, object
      end

      # Return mapping
      #
      # @return [Mapping]
      #
      # @api private
      #
      def mapping
        self
      end

      # Return dump
      #
      # @return [Dump]
      #
      # @api private
      #
      def dump
        Dump.new(mapper.dumper(object))
      end
    end
  end
end
<commit_msg>docfix<commit_after>module DataMapper
  class Session
    # Represent an object with its mapper
    class Mapping
      include Adamantium::Flat, Equalizer.new(:mapper, :object)

      # Return mapper
      #
      # @return [Mapper]
      #
      # @api private
      #
      attr_reader :mapper

      # Return object
      #
      # @return [Object]
      #
      # @api private
      #
      attr_reader :object

      # Initialize object
      #
      # @param [Mapper] mapper
      # @param [Object] object
      #
      # @return [undefined]
      #
      # @api private
      #
      def initialize(mapper, object)
        @mapper, @object = mapper, object
      end

      # Return mapping
      #
      # @return [Mapping]
      #
      # @api private
      #
      def mapping
        self
      end

      # Return new dump
      #
      # @return [Dump]
      #
      # @api private
      #
      def dump
        Dump.new(mapper.dumper(object))
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08902377339403136, 'fraction_numerical': 0.0, 'mean_word_length': 1.4063260340632604, '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': '6940528', 'n_tokens_mistral': 609, 'n_tokens_neox': 596, 'n_words': 151}