<commit_before>class Bob
  def hey(phrase)
    phrase = trim_input phrase
    return 'Fine. Be that way!' if is_silent phrase
    return 'Woah, chill out!' if is_shouting phrase
    return 'Sure.' if is_question phrase

    'Whatever.'
  end

  private
  def is_question(phrase)
    phrase.end_with? '?'
  end

  def is_shouting(phrase)
    phrase.upcase == phrase
  end

  def is_silent(phrase)
    phrase == ''
  end

  def trim_input(phrase)
    phrase.strip
  end
end<commit_msg>bob iteration 4 in Ruby.<commit_after>class Bob
  def hey(phrase)
    phrase = phrase.strip
    return 'Fine. Be that way!' if silent? phrase
    return 'Woah, chill out!' if shouting? phrase
    return 'Sure.' if question? phrase

    'Whatever.'
  end

  private
  def question?(phrase)
    phrase.end_with? '?'
  end

  def shouting?(phrase)
    phrase.upcase == phrase
  end

  def silent?(phrase)
    phrase.empty?
  end
end
{'fraction_non_alphanumeric': 0.09320175438596491, 'fraction_numerical': 0.0010964912280701754, 'mean_word_length': 2.9184549356223175, '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': '1496000', 'n_tokens_mistral': 310, 'n_tokens_neox': 297, 'n_words': 94}