<commit_before>shared_examples 'Unidom::Action::Concerns::AsActorParty' do |model_attributes|

  acting_1_attributes = {
    acted_id:           SecureRandom.uuid,
    acted_type:         'Unidom::Action::Acted::Mock',
    actor_visitor_id:   SecureRandom.uuid,
    actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
    reason_id:          SecureRandom.uuid
  }

  acting_2_attributes = {
    acted_id:           SecureRandom.uuid,
    acted_type:         'Unidom::Action::Acted::Mock',
    actor_visitor_id:   SecureRandom.uuid,
    actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
    reason_id:          SecureRandom.uuid
  }

  it_behaves_like 'has_many', model_attributes, :acted_actings, Unidom::Action::Acting, [ acting_1_attributes, acting_2_attributes ]

end<commit_msg>1, Improve the As Actor Party shared examples for the coding style.<commit_after>shared_examples 'Unidom::Action::Concerns::AsActorParty' do |model_attributes|

  context do

    acting_1_attributes = {
      acted_id:           SecureRandom.uuid,
      acted_type:         'Unidom::Action::Acted::Mock',
      actor_visitor_id:   SecureRandom.uuid,
      actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
      reason_id:          SecureRandom.uuid
    }

    acting_2_attributes = {
      acted_id:           SecureRandom.uuid,
      acted_type:         'Unidom::Action::Acted::Mock',
      actor_visitor_id:   SecureRandom.uuid,
      actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
      reason_id:          SecureRandom.uuid
    }

    it_behaves_like 'has_many', model_attributes, :acted_actings, Unidom::Action::Acting, [ acting_1_attributes, acting_2_attributes ]

  end

end
{'fraction_non_alphanumeric': 0.1060695344725987, 'fraction_numerical': 0.005303476723629935, 'mean_word_length': 3.5891891891891894, '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': '2771461', 'n_tokens_mistral': 572, 'n_tokens_neox': 551, 'n_words': 81}