<commit_before>module RUUID
  class UUID
    include Comparable

    # @private
    def self.from_data(data)
      uuid = allocate
      uuid.instance_variable_set :@data, data.dup.freeze
      uuid
    end

    def self.parse(string)
      from_data(Parser.parse(string))
    end

    # @private
    def initialize
      raise RuntimeError, 'RUUID::UUID.new is not allowed. Use RUUID.generate instead.'
    end

    # @private
    attr_reader :data

    def to_s(format = RUUID.default_format)
      Formatter.format(data, format)
    end
    alias_method :to_str, :to_s

    def to_json(*args)
      to_s(*args).to_json
    end

    def inspect
      "<#{self.class}:0x#{object_id} data=#{to_s}>"
    end

    def marshal_dump
      data
    end

    def marshal_load(data)
      @data = data.dup.freeze
    end<commit_msg>doc: Mark RUUID::UUID marshal methods private<commit_after>module RUUID
  class UUID
    include Comparable

    # @private
    def self.from_data(data)
      uuid = allocate
      uuid.instance_variable_set :@data, data.dup.freeze
      uuid
    end

    def self.parse(string)
      from_data(Parser.parse(string))
    end

    # @private
    def initialize
      raise RuntimeError, 'RUUID::UUID.new is not allowed. Use RUUID.generate instead.'
    end

    # @private
    attr_reader :data

    def to_s(format = RUUID.default_format)
      Formatter.format(data, format)
    end
    alias_method :to_str, :to_s

    def to_json(*args)
      to_s(*args).to_json
    end

    def inspect
      "<#{self.class}:0x#{object_id} data=#{to_s}>"
    end

    # @private
    def marshal_dump
      data
    end

    # @private
    def marshal_load(data)
      @data = data.dup.freeze
    end
{'fraction_non_alphanumeric': 0.09404205607476636, 'fraction_numerical': 0.0011682242990654205, 'mean_word_length': 2.3988095238095237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1827847', 'n_tokens_mistral': 585, 'n_tokens_neox': 573, 'n_words': 132}