<commit_before>require "virtus"

module Undo
  class Config
    include Virtus.model

    attribute :mutation_methods, Array[Symbol], default: [:update, :delete, :destroy]

    attribute :uuid_generator, Proc, default: -> config, _ {
      require "securerandom"
      -> object { SecureRandom.uuid }
    }
    attribute :serializer, Object, default: -> config, _ {
      require "undo/serializer/null"
      Undo::Serializer::Null.new
    }
    attribute :storage, Object, default: -> config, _ {
      require "undo/storage/memory"
      Undo::Storage::Memory.new
    }

    def with(attribute_updates = {}, &block)
      config = attribute_updates.empty? ? self
                                        : self.class.new(attribute_set.get(self).merge attribute_updates)
<commit_msg>mutation_methods option is not used<commit_after>require "virtus"

module Undo
  class Config
    include Virtus.model

    attribute :uuid_generator, Proc, default: -> config, _ {
      require "securerandom"
      -> object { SecureRandom.uuid }
    }
    attribute :serializer, Object, default: -> config, _ {
      require "undo/serializer/null"
      Undo::Serializer::Null.new
    }
    attribute :storage, Object, default: -> config, _ {
      require "undo/storage/memory"
      Undo::Storage::Memory.new
    }

    def with(attribute_updates = {}, &block)
      config = attribute_updates.empty? ? self
                                        : self.class.new(attribute_set.get(self).merge attribute_updates)

{'fraction_non_alphanumeric': 0.11259160559626916, 'fraction_numerical': 0.0, 'mean_word_length': 2.6545012165450124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3468588', 'n_tokens_mistral': 436, 'n_tokens_neox': 422, 'n_words': 93}