<commit_before>class Creditor
  attr_accessor :claim
  delegate :name, :to => :@participant

  def initialize participant
    @participant = participant
    @claim = participant.claim
  end

  def collect_debt debitor
    transfer_amount = debitor.debt < claim ? debitor.debt : claim
    @claim = @claim - transfer_amount
    debitor.debt = debitor.debt - transfer_amount
    Transfer.new :from => debitor.participant, :to => @participant, :amount => transfer_amount 
  end 
end <commit_msg>refactoring tests<commit_after>class Creditor
  attr_accessor :claim
  delegate :name, :to => :@participant

  def initialize participant
    @participant = participant
    @claim = participant.claim
  end

  def collect_debt debitor
    transfer_amount = debitor.debt < claim ? debitor.debt : claim
    @claim = @claim - transfer_amount
    debitor.debt = debitor.debt - transfer_amount
    Transfer.new :from => debitor.participant,
                 :to => @participant,
                 :amount => transfer_amount 
  end 
end 
{'fraction_non_alphanumeric': 0.08627450980392157, 'fraction_numerical': 0.0, 'mean_word_length': 3.254166666666667, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5357869', 'n_tokens_mistral': 317, 'n_tokens_neox': 290, 'n_words': 79}