<commit_before>class TheThing
  
  attr_accessor :sent_messages, :received_messages

  def initialize
    @awesome = true
    @sent_messages     = []
    @received_messages = []
  end

  def awesome?
    @awesome
  end

  def rot!
    @awesome = false
  end

  def receive(message)
    @received_messages << message
  end

  def send_message(message, receiver)
    receiver.receive(message)
    @sent_messages << message
  end
end<commit_msg>Acknowledging and valid Messages .<commit_after>class TheThing
  
  attr_accessor :sent_messages, :received_messages

  def initialize
    @awesome = true
    @sent_messages     = []
    @received_messages = []
  end

  def awesome?
    @awesome
  end
  
  def rot!
    @awesome = false
  end

  def receive(message)
    @received_messages << message
    true
  end

  def send_message(message_body, receiver)
    message = Message.new(message_body)
    
    return unless receiver.receive(message)
    message.acknowledge!
    
    @sent_messages << message
  end
end

class Message < String
  def valid_message?
    !empty?
  end
  
  def acknowledge!
    @acknowledged = true
  end
  
  def acknowledged?
    !!@acknowledged
  end
end
{'fraction_non_alphanumeric': 0.07463952502120441, 'fraction_numerical': 0.0, 'mean_word_length': 2.8688524590163933, 'pattern_counts': {'":': 0, '<': 12, '<?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': '2921791', 'n_tokens_mistral': 395, 'n_tokens_neox': 371, 'n_words': 94}