<commit_before>class   HumanError
module  Errors
module  CrudError
  attr_accessor :resource_name,
                :action,
                :resource_id

  def initialize(resource_name: nil, action: nil, resource_id: nil, **args)
    self.resource_name = resource_name
    self.action        = action
    self.resource_id   = resource_id

    super **args
  end
end
end
end<commit_msg>Feature: Default CRUD error action to 'persist'<commit_after>class   HumanError
module  Errors
module  CrudError
  attr_accessor :resource_name,
                :action,
                :resource_id

  def initialize(resource_name: nil, action: nil, resource_id: nil, **args)
    self.resource_name = resource_name
    self.action        = action || 'persist'
    self.resource_id   = resource_id

    super **args
  end
end
end
end
{'fraction_non_alphanumeric': 0.07221542227662178, 'fraction_numerical': 0.0, 'mean_word_length': 2.769585253456221, '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': '2215592', 'n_tokens_mistral': 253, 'n_tokens_neox': 242, 'n_words': 66}